/**
 * Copyright &copy; 2012-2017 <a href="http://minglisoft.cn">HongHu</a> All rights reserved.
 */
package com.honghu.cloud.feign;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.honghu.cloud.dto.StoreDto;

/**
 * 店铺feign调用类
 * @author Administrator
 *
 */
@FeignClient(name="honghu-store-service" ,path="/store")
public interface StoreFeignClient{


	/**
	 * 查询店铺
	 * @param congelationDto
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/queryPageList", method = RequestMethod.POST)
	public List<StoreDto> queryPageList(@RequestBody Map<String, Object> params,
			@RequestParam("begin") Integer begin, @RequestParam("max")Integer max);

	
	@RequestMapping(value = "/apiForFeign/selectByPrimaryKey", method = RequestMethod.GET)
	public StoreDto selectByPrimaryKey(@RequestParam("id")Long id);
}